<?php
/**
 * Created by PhpStorm.
 * User: jochen
 * Date: 2017/1/6
 * Time: 下午6:21
 */

namespace EWeiLink\JuPai;
use Jenssegers\Mongodb\Eloquent\Model;

/**
 * Class User
 * @package EWeiLink\JuPai
 * @property string $id
 * @property string $name
 */
class User extends Model
{
    const appModelName = '\App\Models\User';

    protected $guarded = [];

    use ModelBridgeTrait;

    public function planner()
    {
        return $this->hasOne(Planner::class);
    }
}